﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RCZCS.aspx.cs" Inherits="HSYCWeb.web.DOCS.RCZCS" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>高级人才注册</title>
   
<meta name="KEYWords" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
<meta name="DEscription" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
    <link rel="Stylesheet" href="CSS/TableCSS.css" type="text/css" />
    <link rel="Stylesheet" href="CSS/textareaCss.css" type="text/css" />
    <link rel="Stylesheet" href="../../baseStyle.css" />
    <script type="text/javascript" src="../../Scripts/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="../../My97DatePicker/WdatePicker.js"></script>
<%--    <script type="text/javascript" src="Script/textarearesizer/jquery-latest.js"></script>
    <script type="text/javascript" src="Script/textarearesizer/jquery.textarearesizer.compressed.js"></script>--%>
    <script type="text/javascript" src="Script/ComAjax.js"></script>
  <link type="text/css" href="CSS/test.css" rel="Stylesheet" />

  <style>
  .block{display:block;
         cursor:pointer;
         }
  </style>
    <script>
        $(document).ready(function () {
//            $('textarea.resizable:not(.processed)').TextAreaResizer();

            $(".float-clr").hover(
      function () {
          $(this).css("background", "#F5F9FD");
          if ($(this).find(".iptpd").hasClass("block")) {
              return;
              //$(this).find("#edit1").addClass("none").removeClass("block");
          }
          else {
              //              alert("1");
              $(this).find(".edit").removeClass("zinfoedit").addClass("block");
          }
      },
      function () {
          $(this).css("background", "");
          $(this).find(".edit").removeClass("block").addClass("zinfoedit");
      }
     );


  });

  function edit(objid) {
      $(objid).removeClass("block");
      $(objid).parent().find(".none").addClass("block");
      $(objid).parent().find(".edit,.value").addClass("none");
      //隐藏的文本框获取值
      var st = $(objid).parent().find(".value").html();
      //隐藏的文本框获取id
      var sid = $(objid).parent().find(".value").attr("id");
      sid = sid.slice(6);



      $(objid).parent().find(".hideInPutvalue").val(st);
      $(objid).parent().find(".hideInPutid").val(sid);
   
  };

  function Cancel(objid) {
      $(objid).parent().parent().find(".none").removeClass("block");
      $(objid).parent().parent().find(".edit,.value").removeClass("none");
  };
  function UpdateVal(objid) {
      var value = $(objid).parent().find(".hideInPutvalue").val(); //要更新的字段值
      var Lname = $(objid).parent().find(".hideInPutid").val(); //要更新的字段名称
      var Lnames = $(objid).parent().parent().find(".value").attr("id"); //页面控件id
      var tableName = "GJRC"; //表名
      var pid = "RCID";//主键id名称
      var pidvalue = "6af7cba6-3a0a-4a16-a74c-56d77708acb3"; //主键id值

    	    
      var Lname = escape(Lname); //unescape
      var value = escape(value);
      ComAjax.updateav(tableName, pid,pidvalue, Lname, value, Lnames);
      $(objid).parent().parent().find(".none").removeClass("block");
      $(objid).parent().parent().find(".edit1,.value").removeClass("none");
  }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style=" margin:10px; width:100%; height:100%; border: 1px solid #2089E8;">
        <%--眉头--%>
        <div style=" width:100%; height:24px; background-image:url(../../images/10.gif); text-align:center;  vertical-align:bottom; color:#fff; font-weight:bold;">
            高级人才注册
        </div>
         <%--眉头--%>
         <%--录入表格--%>   
        <div style= "margin-left:30px; margin-right:30px; margin-top:20px; margin-bottom:20px;">
        <span id="msg" style="margin-right: 10px; color: Red;"></span>

               <table class="table">
                    <tr>
                        <td class="tdC">
                        姓名
                        <input type="text" id="MtxtD_RCID" runat="server"  style=" display:none"/>
                        </td>
                        <td  class="float-clr clear">

                        <label class="value" id="MtxtD_NAME">测试</label>
                        <span id="edit1"  class="zinfoedit edit" onclick="edit(this);">编辑</span>
                                                            <div class="none iptpd">
                                      <input class="hideInPutid"  type="text" style=" display:none"  /><%--id--%>
                                        <input class="hideInPutvalue"  type="text"  /><%--值--%>
                                        <span id="updat" class="Cancel" onclick="UpdateVal(this);">确定</span> <span id="cacn"
                                            class="Cancel" onclick="Cancel(this);">取消</span>
                                    </div>


                        </td>
                         <td class="tdC">
                        性别
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_SEX" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tdC">
                        出生日期
                        <br />
                        （年月日）
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_BRDATE" />
                           <img  style="margin-bottom:0px;"  src="../../images/TreeView/calendar.gif"  onclick="WdatePicker({el:'MtxtD_BRDATE'})"/>
                        </td>
                         <td class="tdC">
                        籍贯
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_JG" />
                        </td>
                    </tr>
                       <tr>
                        <td class="tdC">
                        所属区域
                        <br />
                        (XX省-XX市-XX区)
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_SSQY" />
                        </td>
                         <td class="tdC">
                        民族
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_MZ" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tdC">
                            工作时间
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_GZDATE" />
                        </td>
                         <td class="tdC">
                        政治面貌
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_ZZMM" />
                        </td>
                    </tr>
                      <tr>
                        <td class="tdC">
                            身份证号
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_SFZH" />
                        </td>
                         <td class="tdC">
                        学历信息
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_XLXX" />
                        </td>
                    </tr>
                     <tr>
                        <td class="tdC">
                           学位信息
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_XWXX" />
                        </td>
                         <td class="tdC">
                       毕业院校
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_BYYX" />
                        </td>
                    </tr>
                     <tr>
                        <td class="tdC">
                           所学专业
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_SXZY" />
                        </td>
                         <td class="tdC">
                       工作单位
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_GZDW" />
                        </td>
                    </tr>
                      <tr>
                        <td class="tdC">
                           工作职务
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_GZZW" />
                        </td>
                         <td class="tdC">
                       技能职称
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_JNZC" />
                        </td>
                    </tr>
                        <tr>
                        <td class="tdC">
                           办公电话
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_BGDH" />
                        </td>
                         <td class="tdC">
                       家庭电话
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_JTDH" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tdC">
                           手机
                           <br />
                           (必填)
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_SJNU" />
                        </td>
                         <td class="tdC">
                       邮编
                        </td>
                        <td class="td">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_YB" />
                        </td>
                    </tr>
                     <tr>
                        <td class="tdC">
                           电子邮件
                        </td>
                        <td class="td" colspan="3">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_Emaile" />
                        </td>
                    </tr>
                     <tr>
                        <td class="tdC">
                           办公地址
                        </td>
                        <td class="td" colspan="3">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_BGDZ" />
                        </td>
                    </tr>
                      <tr>
                        <td class="tdC">
                           家庭地址
                        </td>
                        <td class="td" colspan="3">
                        <input type="text" class="inputCss" runat="server" id="MtxtD_JTDZ" />
                        </td>
                    </tr>
                     <tr>
                        <td class="tdC">
                           学习及工作简历
                        </td>
                        <td class="td" colspan="3">
                              <%--  <textarea id="MtxtD_XXJGZJL" class="resizable"  runat="server" style="width: 100%;" cols="20" rows="4">
</textarea>--%>
                            <div style=" width:80%; float:left">
                            
                            </div>
                            <div style=" width:20%; float:left">
                            
                            </div>
                        </td>
                    </tr>
               </table>
        </div>
        <%--录入表格--%>

        <%--按钮--%>
        <div style=" width:100%; text-align:center; margin-bottom:10px; margin-right:10px;">
            <asp:Button ID="Button1" runat="server" Text="报送" CssClass="activeItem" 
                onclick="Button1_Click" />
            <asp:Button ID="Button2" runat="server" Text="放弃" CssClass="activeItem" />
        </div>
        <%--按钮--%>


    </div>
    </form>
</body>
</html>
